import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listContractInfo(query) {
    return request({
        url: '/contractManagement/info/list',
        method: 'get',
        params: query
    })
}

export function listContractReviewInfo(query) {
    return request({
        url: '/contractManagement/info/listReview',
        method: 'get',
        params: query
    })
}

// 查询【请填写功能名称】详细
export function getContractInfo(contractId) {
    return request({
        url: '/contractManagement/info/' + contractId,
        method: 'get'
    })
}

// 新增【请填写功能名称】
export function addContractInfo(data) {
    return request({
        url: '/contractManagement/info',
        method: 'post',
        data: data
    })
}

// 修改【请填写功能名称】
export function updateContractInfo(data) {
    return request({
        url: '/contractManagement/info',
        method: 'put',
        data: data
    })
}

// 删除【请填写功能名称】
export function delContractInfo(contractId) {
    return request({
        url: '/contractManagement/info/' + contractId,
        method: 'delete'
    })
}
export function saveContractPayment(data) {
    return request({
        url: "/contractManagement/info/saveContractPayment",
        method: "post",
        data
    });
}

export function updateContractPayment(data) {
    return request({
        url: "/contractManagement/info/updateContractPayment",
        method: "post",
        data
    });
}

export function updateContractState(data) {
    return request({
        url: "/contractManagement/info/updateContractState",
        method: "post",
        data
    });
}

export function editMainClass(data) {
    return request({
        url: "/contractManagement/info/editMainClass",
        method: "post",
        data
    });
}

